﻿<!DOCTYPE>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
  <title>有限产能排产平台</title>
  <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
  <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
  <link rel="stylesheet" href="/InSiteWebApplication/Content/webuploader/webuploader.css" />
  <style type="text/css">
    .webuploader-pick {
      padding: 0px 0px;
      border-radius: 0px;
    }

    .tip {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      line-height: 25px;
      max-height: 25px;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }

    .tip::before {
      /* attr函数, 参数就是li标签身上的属性 */
      display: none;
      overflow: hidden;
      content: attr(title);
      top: 0px;
      right: 5px;
      opacity: 1;
      padding: 10px;
      position: absolute;
      background-color: rgba(50, 50, 50, 1);
      border-radius: 5px;
      color: #ffffff;
      z-index: 9999;
      max-width: 500px;
    }

    .tip:hover::before {
      display: none;
      /*暂未启用*/
    }
  </style>
</head>

<body style="width: 99.9%;">
  <div class="panelSection">
    <div class="easyui-panel " title="搜索区域" style="padding: 3px; width: 100%"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <div style="margin: 3px 0px 3px 3px">
        <div style="float: left">
          <div class="divLabel" style="margin-bottom: 5px;">
            分厂：</div>
          <input id="factoryID" class="easyui-textbox" name="factoryID" type="text" data-options=""
            style="width: 115px; height: 22px" />
        </div>

        <div style="float: left;margin-left: 10px;">
          <div class="divLabel" style="margin-bottom: 5px;">中心：</div>
          <input id="workcenterid" class="easyui-textbox" name="factoryID" type="text" data-options=""
            style="width: 115px; height: 22px" />
        </div>

        <div style="float: left;margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px;">件号主制单元：</div>
          <input id="teamid" class="easyui-textbox" name="factoryID" type="text" data-options=""
            style="width: 115px; height: 22px" />
        </div>

        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px;">
            订单号：</div>
          <input id="txtMfgorderName" class="easyui-textbox" name="ProductNo" type="text" data-options=""
            style="width: 105px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px">
            件号：</div>
          <input id="txtProduct" class="easyui-textbox" name="ProductNo" type="text" data-options=""
            style="width: 120px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px">
            批次号：</div>
          <input id="txtContainer" class="easyui-textbox" name="ProductNo" type="text" data-options=""
            style="width: 120px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px">
            工序：</div>
          <input id="txtStepName" class="easyui-textbox" name="StepName" type="text" data-options=""
            style="width: 82px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px;">
            排产池：</div>
          <input id="PoolID" class="easyui-combobox" name="PoolID" type="text" style="width: 140px;
                        height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px;">
            是否排产：</div>
          <select style='width: 70px; height: 22px' id='IsAps' class='easyui-combobox'
            data-options="panelHeight:'auto'">
            <option value="0" selected="true">全部</option>
            <option value="1">已排</option>
            <option value="2">未排</option>
          </select>
        </div>
        <div style="float: left; margin-left: 20px">
          <a href="#" id="btnSearch" class="easyui-linkbutton" data-options="" style="margin-top: 16px;
                        width: 80px">查询</a>
        </div>
        <div style="float: left; margin-left: 10px">
          <a href="#" id="btnReset" class="easyui-linkbutton" data-options="" style="margin-top: 16px;">
            重置</a>
        </div>
        <div style="height: 5px; clear: both">
        </div>
        <div style="float: left; margin-left: 0px">
          <div class="divLabel" style="margin-bottom: 5px">
            订单开始日期范围：</div>
          <input id="txtOrderBStartDate" type="text" class="easyui-datebox" style="width: 110px;
                        height: 22px" />--<input id="txtOrderEStartDate" type="text" class="easyui-datebox"
            style="width: 110px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px">
            订单结束日期范围：</div>
          <input id="txtOrderBEndDate" type="text" class="easyui-datebox" style="width: 118px;
                        height: 22px" />--<input id="txtOrderEEndDate" type="text" class="easyui-datebox"
            style="width: 118px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px">
            手动指定日期范围：</div>
          <input id="txtRealSStartDate2" type="text" class="easyui-datebox" style="width: 110px;
                        height: 22px" />--<input id="txtRealEStartDate2" type="text" class="easyui-datebox"
            style="width: 110px; height: 22px" />
        </div>
        <div style="float: left; margin-left: 10px">
          <div class="divLabel" style="margin-bottom: 5px;">
            是否齐套：</div>
          <select style='width: 70px; height: 22px' id='ddlIsPrepare' class='easyui-combobox'
            data-options="panelHeight:'auto'">
            <option value="" selected="true">全部</option>
            <option value="0">否</option>
            <option value="1">是</option>
          </select>
        </div>
        <div style="clear: both">
        </div>
      </div>
    </div>
  </div>
  <div class="panelSection">
    <div class="easyui-panel " title="排产池" style="padding: 3px; width: 100%"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <div>
        <button id="btnApsPoolExport" class="easyui-linkbutton" style="height: 24px">
          排产池导出</button>
        <button id="btnApsSeqImport" class="easyui-linkbutton" style="height: 24px">
          排产顺序号导入</button>
        <span style="color:red;font-weight:bold;margin-left: 10px;">内部系统，禁止处理涉密信息！</span>
      </div>
      <div id="dvApsPool" class="dvgrid-cellwarp">
        <table id="gdApsPool" class="easyui-datagrid" style="width: 100%; height: 350px"
          data-options="rownumbers:true,fitColumns:true,pagination:false,striped:true,checkOnSelect:false,selectOnCheck:true,singleSelect:false,pageNumber:1,pageSize:5,pageList:[5,10,20]">
        </table>
        <div id="pp" style="float: right;" class="easyui-pagination" data-options="   
                 layout:['first','prev','next','last','manual','info'],              
                    total: 0,
                    showPageList: false,
                    showPageInfo: false,
                    showRefresh: false,
                    afterPageText:'共&nbsp{pages}&nbsp页',
                     buttons:[{
                            iconCls:'',
                            text:'Go',
                            group:'paging-tail-btns',
                            id:'pageGo'
                    }]
                ">
        </div>
      </div>
    </div>
  </div>
  <div class="panelSection">
    <div class="easyui-panel " title="批次排产信息" style="padding: 3px; width: 100%"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <div style="margin: 3px 0 0 3px">
        <table id="gdContainerAps" class="easyui-datagrid" style="width: 100%; height: 350px"
          data-options="rownumbers:true,pagination:false,striped:true,checkOnSelect:true,selectOnCheck:true,singleSelect:false,pageNumber:1,pageSize:5,pageList:[5,10,20]">
        </table>
      </div>
    </div>
  </div>
  <div class="panelSection">
    <div class="easyui-panel " title="属性区域" style="padding: 3px; width: 100%"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <div style="margin: 3px 0px 3px 3px">
        <div id="apsType">
          <span style="font-weight: bold; font-size: 14px">排产策略：</span>
          <label>
            <input type="radio" name="apsType" value="1" />
            正排
          </label>
          <label style="margin-left: 10px">
            <input type="radio" name="apsType" value="2" />
            倒排
          </label>
          <label style="margin-left: 10px">
            <input type="radio" name="apsType" value="3" />
            瓶颈排
          </label>
        </div>
      </div>
    </div>
  </div>
  <div class="panelSection">
    <div class="easyui-panel " title="操作区域" style="padding: 3px; width: 100%"
      data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">
      <div style="margin: 3px 0px 3px 3px">
        <div style="float: left; margin-left: -20px">
          <a href="javascript:void(0);" id="btnAddPool" class="easyui-linkbutton" data-options=""
            style="margin-left: 20px; height: 24px">添加排产池</a> <a href="javascript:void(0);" id="btnRemoveApsPool"
            class="easyui-linkbutton" data-options="" style="margin-left: 20px; height: 24px">
            移除排产池</a> <a href="javascript:void(0);" id="btnManual" class="easyui-linkbutton" data-options=""
            style="display: none; margin-left: 20px; height: 24px">保存手动指定开始日期</a>
          <a href="javascript:void(0);" id="btnCalcStepDuration" class="easyui-linkbutton" data-options=""
            style="margin-left: 20px; height: 24px">排产优先级计算</a> 
          <a href="javascript:void(0);" id="btnLMAps" class="easyui-linkbutton" data-options="" style="margin-left: 20px;
                            height: 24px">排产计算</a> 
          <a href="javascript:void(0);" id="btnRevAndManualAps" class="easyui-linkbutton" data-options="" style="margin-left: 20px;
                            height: 24px">倒排计算指定日期</a> 
          <a href="javascript:void(0);" id="btnLMApsExport"
            class="easyui-linkbutton" data-options="" style="margin-left: 20px; height: 24px">排产结果导出</a>
        </div>
        <div style="float: left">
          <div id="ApsUploader" style="margin-left: 20px" class="wu-example">
            <div style="float: left">
              <input id="txtExcelFileId" type="hidden" />
              <a href="javascript:void(0);" id="btnLMApsImport" class="easyui-linkbutton" style="height: auto">
                排产结果导入</a> <a href="javascript:void(0);" id="btnTaskLogsExport" class="easyui-linkbutton"
                data-options="" title="排产错误日志导出" style="margin-left: 20px; height: 24px">排产错误日志导出</a>
            </div>
            <!--<button id="ctlBtn" class="easyui-linkbutton" style="float: left; margin-left: 20px;width: 80px;">开始导入</button>-->
          </div>
        </div>
        <div style="clear: both">
        </div>
      </div>
    </div>
  </div>
  <!--<div id="statusMessage" style="font-size: 14px; height: 40px; margin-top: 10px"></div>-->
  <div id="dg" style="display: none">
  </div>
  <div id="dgAnalysis" style="display: none">
  </div>
  <div id="ErrorDg" style="display: none">
    <table id="ErrorTable" class="easyui-datagrid" data-options="rownumbers:true">
    </table>
  </div>
  <div id="dgSeqImport" style="display: none">
    <table id="SeqImportTable" class="easyui-datagrid" data-options="rownumbers:true">
    </table>
  </div>
  <div id="dgManualEndDate" style="padding: 0; display: none">
    <!--<div class="panelSection">    
        <div class="easyui-panel " title="日期指定" style="padding:3px;width:100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false">--> 
      <div style="position:relative;margin:3px 0 0 3px">
        <div style="float: left; margin-left: 0px">
              <div class="divLabel" style="margin-bottom: 5px;display: inline-block">
                指定排产结束日期：</div>
              <input id="dgMEDEndDate" type="text" class="easyui-datebox" style="width: 150px;
                            height: 22px" />
            </div>
      </div>
      <div style="clear:both" ></div>
        <div style="margin-top: 20px; text-align: right; padding-right: 10px">
            <a href="javascript:void(0);" id="dgMEDSave" class="easyui-linkbutton"
                data-options="" style="margin-left: 0px; width: 60px">确定</a> 
            <a href="javascript:void(0);" id="dgMEDCancel" class="easyui-linkbutton"
                            data-options="" style="margin-left: 10px; width: 60px">取消</a>
        </div>
        <!--</div> 
    </div>--> 
  </div>
</body>

</html>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/ReferenceJsLib.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript" src="/InSiteWebApplication/Content/Easyui/datagrid-groupview.js"></script>
<script type="text/javascript" src="/InSiteWebApplication/Content/webuploader/webuploader.js"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<!--<script src="/InSiteWebApplication/Scripts/ApsJs/ApsLimitedCapacity.js?V=new Date().getTime()" type="text/javascript"></script>-->
<script type="text/javascript">
  document.write('<script src="/InSiteWebApplication/Scripts/ApsJs/ApsLimitedCapacity.js?v=' + new Date().getTime() + '" type="text/javascript" ><\/script>');
</script>